class Recipient < ActiveRecord::BaseWithoutTable

  column :name, :string
  column :email, :string

  validates_presence_of :name,  :message => 'empty_recipient_name'

  validates_format_of   :email, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/, 
								        :message => "invalid_recipient_email_ address"
								        							        
	def empty?
	 self.name.blank? && self.email.blank?
	end

end